package com.hgz.util;

import java.util.Calendar;

public class OperateTime {
	
	/** 
     * 获取系统时间 
     * @return 
     */  
    public static String getDate(){  
          
         Calendar ca = Calendar.getInstance();  
          int year = ca.get(Calendar.YEAR);//获取年份  
          int month=ca.get(Calendar.MONTH);//获取月份   
          int day=ca.get(Calendar.DATE);//获取日  
          int minute=ca.get(Calendar.MINUTE);//分   
          int hour=ca.get(Calendar.HOUR);//小时   
          int second=ca.get(Calendar.SECOND);//秒  
            
         // String date = year + "年" + (month + 1 )+ "月" + day + "日"+ hour + "时" + minute + "分" + second + "秒";  
          String date = year+""+ (month + 1 )+""+ day;
          return date;  
          
    }  

}
